package utils;


/**
 * Interfejs koji skladisti konstante.
 * 
 * @author Uros Krkic
 */
public interface Constants {
	
	public static final String CRLF = "\r\n";
	
	
	public static final String[] COMMAND_NAMES = { 	"REG",
													"LOGIN",
													"CONT_LIST",
													"BLOCK_LIST",
													"CHSTATUS",
													"CHNICK",
													"CHPSWD",
													"CHAVATAR",
													"CHMAIL",
													"LOGOUT",
													"UNREG",
													"DEL",
													"BLOCK",
													"UNBLOCK",
													"ADD",
													"FIND",
													"ADD_MSGS" };
	
	
	public static final int COMMAND_COUNT	= 17;
	
	// Command codes
	public static final int REG_CMD			= 0;
	public static final int LOGIN_CMD		= 1;
	public static final int CONT_LIST_CMD	= 2;
	public static final int BLOCK_LIST_CMD	= 3;
	public static final int CHSTATUS_CMD	= 4;
	public static final int CHNICK_CMD		= 5;
	public static final int CHPSWD_CMD		= 6;
	public static final int CHAVATAR_CMD	= 7;
	public static final int CHMAIL_CMD		= 8;
	public static final int LOGOUT_CMD		= 9;
	public static final int UNREG_CMD		= 10;
	public static final int DEL_CMD			= 11;
	public static final int BLOCK_CMD		= 12;
	public static final int UNBLOCK_CMD		= 13;
	public static final int ADD_CMD			= 14;
	public static final int FIND_CMD		= 15;
	public static final int ADD_MSGS_CMD	= 16;

	
	public static final int WINDOW_WIDTH	= 250;
	public static final int WINDOW_HEIGHT	= 120;


	public static final int BUFFER_SIZE		= 2048;
	
	public static final String LOGOUT_SEQUENCE	= "*****";
}
